package com.jumlabs.entities.navigation;

import java.util.List;

public class NavigationItem {
	private int level;
    private String name;
    private String label;
    private boolean selected;
    public String getName(){
    	
    	return name;
    }
    
    public void setName(String name){
    	this.name=name;
    }
	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public Link getLink() {
		return link;
	}

	public void setLink(Link link) {
		this.link = link;
	}

	public List<NavigationItem> getNavigationItems() {
		return navigationItems;
	}

	public void setNavigationItems(List<NavigationItem> navigationItems) {
		this.navigationItems = navigationItems;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public boolean isSelected() {
		return selected;
	}

	public void setSelected(boolean selected) {
		this.selected = selected;
	}

	private Link link;
	private List<NavigationItem> navigationItems;
	
	public NavigationItem getSelectedNavigationItem(){
		for(NavigationItem navItem:navigationItems){
			if(navItem.isSelected())
				return navItem;
		}
		return new NavigationItem();
	}

}
